#ifndef PLAYER_H
#define PLAYER_H

#include "sprite.h"
#include "../../sleek/core/device/event.h"

class Player : public Sprite
{
    public:
        enum E_PLAYER_KEY
        {
            EPK_NOTHINK = 0,
            EPK_LEFT = 1,
            EPK_RIGHT = 2,
            EPK_JUMP = 4,
            EPK_CROUCH = 8,
            EPK_ATK = 16
        };
        enum E_PLAYER_ACTION
        {
            EPA_STAND,
            EPA_RUN,
            EPA_JUMP,
            EPA_CROUCH,
            EPA_ATK,
            EPA_COUNT
        };
    public:
        Player(sleek::core::engine::engine*);
        virtual ~Player();

        virtual bool manage(sleek::core::device::input*);
        virtual void loadSprite();

        virtual bool animate();
        virtual void render();
    protected:
        int action;
        int last;
};

#endif // PLAYER_H
